<?php

class Menu extends BaseMenu
{
    public function __toString(){
        return $this->getName();
    }
    
    public function getRootMenuItems(){
    	$c = new Criteria();
    	$c->add(MenuItemPeer::PARENT_ID ,null,Criteria::ISNULL );
    	$c->addDescendingOrderByColumn(MenuItemPeer::WEIGHT );
    	return $this->getMenuItems($c);
    	
    }
}


sfPropelBehavior::add('Menu', array('created_by'));